﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Methods;

[TestClass]
public class TestAreNeighboursLess
{
    [TestMethod]
    public void IsCasualGreater()
    {
        int[] arr = { 3, 1, 4, 1, 3, 1 };
        bool first = GreaterThanItsTwoNeighbours.IsItGreatThanItsNeighbours(2, arr);
        Assert.AreEqual(true, first);
    }

    [TestMethod]
    public void IsCasualGreaterFalse()
    {
        int[] arr = { 3, 1, 4, 1, 3, 1 };
        bool first = GreaterThanItsTwoNeighbours.IsItGreatThanItsNeighbours(1, arr);
        Assert.AreEqual(false, first);
    }

    [TestMethod]
    public void IsCasualGreaterWithNegatives()
    {
        int[] arr = { -3, -1, -4, 1, 3, 1 };
        bool first = GreaterThanItsTwoNeighbours.IsItGreatThanItsNeighbours(1, arr);
        Assert.AreEqual(true, first);
    }
}